package com.bw.skinfilecreator;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class CreatorApplication extends Application {
    public static void main(String[] args) {
        launch();
    }

    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(CreatorApplication.class.getResource("creator-view.fxml"));
        Scene scene = new Scene(fxmlLoader.load(), 500, 340);
        stage.setTitle("皮肤包制作工具");
        stage.setResizable(false);

        // 添加CSS样式表，假设CSS文件在当前包下
        scene.getStylesheets().add(CreatorApplication.class.getResource("/css/app-style.css").toExternalForm());
        stage.setScene(scene);
        stage.show();
    }
}